package com.site.wisdom_construction.service.trainingCheckModule;

import com.site.wisdom_construction.dao.trainingCheckModule.TrainExamDao;
import com.site.wisdom_construction.entity.trainingCheckModule.TrainExam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/18
 * @Description
 */
@Service
public class TrainExamService implements TrainExamDao {
    @Autowired
    private TrainExamDao trainExamDao;

    @Override
    public int insertTrainExam(Map map) {
        return trainExamDao.insertTrainExam(map);
    }

    @Override
    public int deleteTrainExam(Map map) {
        return trainExamDao.deleteTrainExam(map);
    }

    @Override
    public int updateTrainExam(Map map) {
        return trainExamDao.updateTrainExam(map);
    }

    @Override
    public List<TrainExam> findTrainExamByPage(Map map) {
        return trainExamDao.findTrainExamByPage(map);
    }

    @Override
    public long Total(Map map) {
        return trainExamDao.Total(map);
    }

    @Override
    public TrainExam findTrainExamByNew(Map map) {
        return trainExamDao.findTrainExamByNew(map);
    }
}
